﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucDetailOrder.ascx.cs" Inherits="UserControl_ucDetailOrder" %>
 
 <asp:GridView ID="grdShoppingCart" runat="server" AutoGenerateColumns="False" CellPadding="10"
        CssClass="grd">
        <Columns>
            <asp:TemplateField HeaderText="Sản Phẩm">
                <ItemTemplate>
                    <asp:Image ID="imgProduct" runat="server" ImageUrl='<%# "~/ImageProcess.ashx?file=" + "~/images/items/" + Eval("ImageURL") + "&width=100&heigh=100&dd=true" %>'
                        ToolTip='<%# Eval("ItemName") %>' /></ItemTemplate>
                <ItemStyle Height="70" VerticalAlign="Middle" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Tên Sản Phẩm">
                <ItemTemplate>
                    <%# Eval("ItemNumber") %><br />
                    <%# Eval("ItemName")%></ItemTemplate>
                <ItemStyle HorizontalAlign="Left" Wrap="True" Font-Bold="true" Width="355px"></ItemStyle>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Giá">
                <ItemTemplate>     
                        <%# double.Parse(Eval("Price").ToString()).ToString("0,00.##")%>
                </ItemTemplate>
                <ItemStyle Width="60" VerticalAlign="Middle" HorizontalAlign="Center" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Số Lượng">
                <ItemTemplate>
                    <%# Eval("Quantity") %>
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="50px" />
            </asp:TemplateField>
            <asp:TemplateField HeaderText="Thành Tiền">
                <ItemTemplate>
                    <%# (double.Parse(Eval("Quantity").ToString()) * double.Parse(Eval("Price").ToString())).ToString("0,00.##")%>
                </ItemTemplate>
                <ItemStyle Width="90" VerticalAlign="Middle" HorizontalAlign="Right" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle CssClass="grdHeader" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle CssClass="grdAlternateRow" />
        <RowStyle CssClass="grdRow" />
    </asp:GridView>
    <asp:Panel ID="pnlCartFooter" runat="server" Height="49px">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td style="text-align: right;" align="right">
                    Phí vận chuyển :
                    <asp:Label ID="lblDeliveryFee" runat="server" Text="NA" Font-Bold="true"><%# Eval("DeliveryFee") %></asp:Label>
                </td>
            </tr>
            <tr>
                <td style="text-align: right; padding: 10px 0 10px 0; background-image: none; background-repeat: repeat;
                    background-color: #006699;" valign="middle">
                    <span style="color: #FFFFFF">Trị giá hóa đơn: </span>
                    <asp:Label ID="lblTotal" runat="server" CssClass="clsTotalPriceCart" Style="color: #FFFFFF"><%# Eval("Total") %></asp:Label>
                    <span style="color: #FFFFFF">&nbsp;(Đã bao gồm VAT)</span>
                </td>
            </tr>
        </table>
    </asp:Panel>
